Skip to content

Conversation

@jaygiang
Copy link
Collaborator

#695

Description

This PR fixes an issue where Table pagination buttons trigger form submission when the Table component is rendered inside a form element.

Problem

When a Table component with pagination controls is rendered inside a form, clicking on the pagination buttons causes the form to submit. This happens because the Button components in the pagination controls don't have an explicit type attribute, so they default to type="submit".

Solution

Added type="button"to all pagination Button components in the Table component to prevent unintended form submissions.

@jaygiang jaygiang requested a review from thgaskell July 30, 2025 17:06
@jaygiang jaygiang linked an issue Jul 30, 2025 that may be closed by this pull request
Copy link
Contributor

@thgaskell thgaskell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@thgaskell thgaskell merged commit 557abb5 into main Jul 31, 2025
3 checks passed
@thgaskell thgaskell deleted the 659-bug-table-pagination branch July 31, 2025 07:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

Bug: Table pagination buttons trigger form submission

3 participants